package com.readygo.boot_test.repository.auth;

import com.readygo.boot_test.entity.auth.Role;
import com.readygo.boot_test.entity.auth.RoleKey;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface RoleRepository extends CrudRepository<Role, RoleKey> {

    List<Role> findAllByRoleKey_SecurityUserId(Integer securityUserId);

}
